package marksys.free.com.marksys.nettool.vo;

import android.os.Parcel;
import android.os.Parcelable;

public class Detail implements Parcelable {
    public long id;
    public long project;
    public long classId;
    public double score;
    public long reasonId;
    public String reason;
    public String content;
    public String image;
    public String video;
    public String projectName;
    public int type;
    public String className;

    protected Detail(Parcel in) {
        id = in.readLong();
        project = in.readLong();
        classId = in.readLong();
        score = in.readDouble();
        reasonId = in.readLong();
        reason = in.readString();
        content = in.readString();
        image = in.readString();
        video = in.readString();
        projectName = in.readString();
        type = in.readInt();
        className = in.readString();
    }

    public static final Creator<Detail> CREATOR = new Creator<Detail>() {
        @Override
        public Detail createFromParcel(Parcel in) {
            return new Detail(in);
        }

        @Override
        public Detail[] newArray(int size) {
            return new Detail[size];
        }
    };

    @Override
    public String toString() {
        return "Detail{" +
                "id='" + id + '\'' +
                ", project='" + project + '\'' +
                ", classId='" + classId + '\'' +
                ", score='" + score + '\'' +
                ", reasonId='" + reasonId + '\'' +
                ", reason='" + reason + '\'' +
                ", content='" + content + '\'' +
                ", image='" + image + '\'' +
                ", video='" + video + '\'' +
                ", projectName='" + projectName + '\'' +
                ", type='" + type + '\'' +
                ", className='" + className + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeLong(id);
        parcel.writeLong(project);
        parcel.writeLong(classId);
        parcel.writeDouble(score);
        parcel.writeLong(reasonId);
        parcel.writeString(reason);
        parcel.writeString(content);
        parcel.writeString(image);
        parcel.writeString(video);
        parcel.writeString(projectName);
        parcel.writeInt(type);
        parcel.writeString(className);
    }
}

